<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


function Paging($count,$jump_url,$pagesize=PAGE_SIZE)
{
	$config['base_url'] = $jump_url;
	$config['total_rows'] = $count;
	$config['per_page'] = $pagesize;
	$config['num_links'] = 1;
	$config['first_link'] = '<span>��һҳ</span>';
	$config['first_tag_open'] = '<li class="one">';
	$config['first_tag_close'] = '</li>';
	$config['last_link'] = '<span>���һҳ</span>';
	$config['last_tag_open'] = '<li class="end">';
	$config['last_tag_close'] = '</li>';
	$config['next_link'] = '<span>��һҳ</span>';
	$config['next_tag_open'] = '<li class="next">';
	$config['next_tag_close'] = '</li>';
	$config['prev_link'] = '<span>��һҳ</span>';
	$config['prev_tag_open'] = '<li class="prev">';
	$config['prev_tag_close'] = '</li>';
	$config['full_tag_open'] = '<ul class="pages">';
	$config['full_tag_close'] = '</ul>';
	$config['cur_tag_open'] = '<li class="all">ҳ<input type="text" value="';
	$config['cur_tag_close'] = '">ҳ&nbsp;��'.($count % $pagesize == 0 ? $count / $pagesize : (int)($count / $pagesize) + 1).'ҳ</li>';
	$config['num_tag_open'] = '<li style="display:none">';
	$config['num_tag_close'] = '</li>';
	return $config;
}
